import request from '../request'

// 工作经历相关接口
// 查询工作经历列表
export const getWorkExperienceList = () => {
	return request.get('/business/resumeWorkExperience/list')
}

// 获取工作经历详细信息
export const getWorkExperienceDetail = (id) => {
	return request.get(`/business/resumeWorkExperience/${id}`)
}

// 新增工作经历
export const addWorkExperience = (params) => {
	return request.post('/business/resumeWorkExperience', params)
}

// 修改工作经历
export const updateWorkExperience = (params) => {
	return request.put('/business/resumeWorkExperience', params)
}

// 删除工作经历
export const deleteWorkExperience = (ids) => {
	return request.delete(`/business/resumeWorkExperience/${ids}`)
}

// 根据工作经历生成工作描述
export const generateWorkExperienceDescription = (params) => {
	return request.get(`/business/resumeWorkExperience/generateOne`,params)
}

// 实习经历相关接口
// 查询实习经历列表
export const getInternshipExperienceList = () => {
	return request.get('/business/resumeInternshipExperience/list')
}

// 获取实习经历详细信息
export const getInternshipExperienceDetail = (id) => {
	return request.get(`/business/resumeInternshipExperience/${id}`)
}

// 新增实习经历
export const addInternshipExperience = (params) => {
	return request.post('/business/resumeInternshipExperience', params)
}

// 修改实习经历
export const updateInternshipExperience = (params) => {
	return request.put('/business/resumeInternshipExperience', params)
}

// 删除实习经历
export const deleteInternshipExperience = (ids) => {
	return request.delete(`/business/resumeInternshipExperience/${ids}`)
}

// 根据实习经历生成实习描述
export const generateInternshipExperienceDescription = (params) => {
	return request.get(`/business/resumeInternshipExperience/generateOne`,params)
}